package com.manli.api.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author manli
 * @email 
 * @date 2020-05-12 09:11:18
 */
@ApiModel(value = "goodsdef")
@Data
public class GoodsDefModel implements Serializable {

	/**
	 * 唯一标识
	 */

    @ApiModelProperty(value = "唯一标识",dataType = "Integer")
	    private Integer goodsDefId;
	/**
	 * 商品名称
	 */

    @ApiModelProperty(value = "商品名称",dataType = "String")
	    private String goodsName;
	/**
	 * 商品图片 可以多个用逗号隔开
	 */

    @ApiModelProperty(value = "商品图片 可以多个用逗号隔开",dataType = "String")
	    private String goodsPic;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String goodsDescription;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String goodsTips;
	/**
	 * -2草稿 ,-1提交审核(待审核)0退回,1上架成功,2下架
	 */

    @ApiModelProperty(value = "-2草稿 ,-1提交审核(待审核)0退回,1上架成功,2下架",dataType = "Integer")
	    private Integer status;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "Integer")
	    private Integer branchId;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "Integer")
	    private Integer partnerId;
	/**
	 * 1：到店自取 2：商家配送 3：平台配送
	 */

    @ApiModelProperty(value = "1：到店自取 2：商家配送 3：平台配送",dataType = "String")
	    private String buyMethod;
	/**
	 * 创建时间
	 */

    @ApiModelProperty(value = "创建时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;
	/**
	 * 审核时间
	 */

    @ApiModelProperty(value = "审核时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date auditTime;
	/**
	 * 审核备注
	 */

    @ApiModelProperty(value = "审核备注",dataType = "String")
	    private String auditMsg;

	/**
	 * 配送方式
	 */

	@ApiModelProperty(value = "配送方式",dataType = "String")
	private String buyMethodName;

	/**
	 * 商品状态
	 */

	@ApiModelProperty(value = "商品状态",dataType = "String")
	private String goodsStatus;

	/**
	 * 机构名称
	 */

	@ApiModelProperty(value = "机构名称",dataType = "String")
	private String branchName;

	/**
	 * 分店名称
	 */

	@ApiModelProperty(value = "分店名称",dataType = "String")
	private String partnerName;

	/**
	 * 产品主营所属id
	 */

	@ApiModelProperty(value = "产品主营所属id",dataType = "String")
	private String goodsMajorType;

	/**
	 * 产品主营所属名称
	 */

	@ApiModelProperty(value = "产品主营所属名称",dataType = "String")
	private String goodsMajorTypeName;

	/**
	 * 唯一标识
	 */

	@ApiModelProperty(value = "唯一标识",dataType = "Integer")
	private Integer goodsModelId;

	/**
	 * 商品规格名称
	 */

	@ApiModelProperty(value = "商品规格名称",dataType = "String")
	private String goodsModelName;
	/**
	 * 商品数量
	 */

	@ApiModelProperty(value = "商品数量",dataType = "Integer")
	private Integer goodsTotal;
	/**
	 * 成本价
	 */

	@ApiModelProperty(value = "成本价",dataType = "Double")
	private Double goodsModelCost;
	/**
	 * 销售价
	 */

	@ApiModelProperty(value = "销售价",dataType = "Double")
	private Double goodsModelSalePrice;
	/**
	 * 渠道价(给系统代卖,系统会做推广,则商户收到的利润是channel_price - cost ,系统的利润是sale_price-channel_price）
	 */

	@ApiModelProperty(value = "渠道价(给系统代卖,系统会做推广,则商户收到的利润是channel_price - cost ,系统的利润是sale_price-channel_price）",dataType = "Double")
	private Double goodsModelChannelPrice;

	/**
	 * 原价
	 */

	@ApiModelProperty(value = "原价",dataType = "Double")
	private Double goodsModelSourcePrice;




}
